import { join } from 'path';

export default () => ({
  isTest: process.env.NODE_ENV === 'test',
  isOnline: process.env.NODE_ENV === 'online',
  port: process.env.PORT,
  apiPrefix: process.env.API_PREFIX,
  domain: process.env.DOMAIN,
  staticPath: join(process.cwd(), '/static'),
  template: {
    secret: process.env.TEMPLATE_SECRET,
    expiresIn: process.env.TEMPLATE_EXPIRE,
    email_auth_user: process.env.TEMPLATE_MAIL_AUTH_USER,
    email_pass: process.env.TEMPLATE_MAIL_AUTH_PASS
  },
});
